/**
 * @see [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/file.html#wxgetsavedfilelistobject)
 */
export default function get_saved_file_list() {
	return new Promise<{
		msg: wx.GetSavedFileListData,
		success: boolean
	}>((resolve) => {
		wx.getSavedFileList({
			success(res) {
				resolve({
					msg: res,
					success: true
				});
			},
			fail(res) {
				resolve({
					msg: res,
					success: false
				});
			}
		});
	});
}
